var app = getApp();
Page({
  data: {},
  getUserInfo: function (e) {
    console.log("getUserInfo----------\x3e", e);
    if (e.detail.errMsg === 'getUserInfo:fail auth deny') {
      //拒绝授权
      return;
    } else {
      let userInfo = e.detail.userInfo;
      wx.setStorageSync('userInfo', userInfo);
      console.log('用户信息:', userInfo);
      wx.reLaunch({
        url: '/pages/index/index',
      });
    }
  }
})